package com.hube.platform.tenant.configuration;

import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : Aaron
 * @date : 2022/6/9
 */
@Configuration
public class LiquibaseConfiguration {

    @Bean("masterDataLiquibaseProperties")
    @ConfigurationProperties(prefix = "spring.liquibase.master-data")
    public LiquibaseProperties initMasterDataLiquibaseProperties() {
        return new LiquibaseProperties();
    }

    @Bean("tenantLiquibaseProperties")
    @ConfigurationProperties(prefix = "spring.liquibase.tenant")
    public LiquibaseProperties initTenantLiquibaseProperties() {
        return new LiquibaseProperties();
    }

}
